<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>amCharts examples</title>
        <link rel="stylesheet" href="style.css" type="text/css">
        <script src="../amcharts/amcharts.js" type="text/javascript"></script>
        <script src="../amcharts/serial.js" type="text/javascript"></script>
        
        <script type="text/javascript">
            var chart;

            var chartData = [
                {
                    "country": "USA",
                    "year2004": 1
                },
                {
                    "country": "UK",
                    "year2004": 1
                },
                {
                    "country": "Canada",
                    "year2004": 1
                },
                {
                    "country": "Japan",
                    "year2004": 1
                },
                {
                    "country": "France",
                    "year2004": 1
                },
                {
                    "country": "Brazil",
                    "year2004": 1
                },
                {
                    "country": "Russia",
                    "year2004": 1
                },
                {
                    "country": "India",
                    "year2004": 1
                },
                {
                    "country": "China",
                    "year2004": 1
                }
            ];


            AmCharts.ready(function () {
                // SERIAL CHART
                chart = new AmCharts.AmSerialChart();
                chart.dataProvider = chartData;
                chart.categoryField = "country";
                chart.color = "#FFFFFF";
//                chart.fontSize = 24;
  //              chart.startDuration = 2;
//                chart.plotAreaFillAlphas = 0.3;
                // the following two lines makes chart 3D
    //            chart.angle = 60;
      //          chart.depth3D = 60;

                // AXES
                // category
                var categoryAxis = chart.categoryAxis;
//                categoryAxis.gridAlpha = 0.2;
  //              categoryAxis.gridPosition = "start";
                categoryAxis.gridColor = "#FFFFFF";
                categoryAxis.axisColor = "#FFFFFF";
//                categoryAxis.axisAlpha =0.5;
//                categoryAxis.dashLength = 5;


                // value
                var valueAxis = new AmCharts.ValueAxis();

                valueAxis.stackType = "3d"; // This line makes chart 3D stacked (columns are placed one behind another)
  //              valueAxis.gridAlpha = 0.2;
                valueAxis.gridColor = "blue";
                valueAxis.axisColor = "red";
//                valueAxis.axisAlpha = 0.5;
//                valueAxis.dashLength = 5;
  //              valueAxis.title = "GDP growth rate";
                valueAxis.titleColor = "blue";
    //            valueAxis.unit = "%";
//	                valueAxis.minimum = 1;
if(3==3){
                valueAxis.maximum = 10;
}
                chart.addValueAxis(valueAxis);

                // GRAPHS         
                // first graph
                var graph1 = new AmCharts.AmGraph();
                graph1.title = "2004";
                graph1.valueField = "year2004";
                graph1.type = "column";
    //            graph1.lineAlpha = 0;
                graph1.lineColor = "#D2CB00";
      //          graph1.fillAlphas = 1;
                graph1.balloonText = "GDP grow in [[category]] (2004): <b>[[value]]</b>";
				

				
								
                chart.addGraph(graph1);

                chart.write("chartdiv");
            });
        </script>
    </head>
    
    <body style="background-color:#000000;">
        <div id="chartdiv" style="width: 100%; height: 400px;"></div>
    </body>

</html>